import {request} from "@/common/request"
import {IResponse} from "@/common/common";

export interface IPostBlogData {
  title: string
  content: string
  category_id: number
  publish: number
}

export async function apiPostBlog(data: Partial<IPostBlogData>): Promise<IResponse> {
  return request({
    url: `/v1/api/blog/post`,
    method: "POST",
    data: data
  })
}


